<template>
  <div class="bottomRight">
    <div class="bg-color-black">
      <div class="d-flex pt-2 pl-2">
        <span>
          <i class="iconfont icon-chart-area" />
        </span>
        <div class="d-flex">
          <span class="fs-xl text mx-2 mt-1">用户概况</span>
        </div>
      </div>
      <div>
<!--        <div class="up">-->
<!--        <div>-->
<!--          <p class="ml-3 colorBlue fw-b">车牌用户转化</p>-->
<!--          <p class="itentitle">{{user1[0].value}}</p>-->
<!--        </div>-->
<!--        <div>-->
<!--          <p class="ml-3 colorBlue fw-b">支付用户转化率</p>-->
<!--          <p class="itentitle">{{ user2[0].value }}</p>-->
<!--        </div>-->
<!--        </div>-->
        <div>

          <div style="padding-bottom: 20px">
            <span class="" style="text-align: center;">车牌用户转化</span>
<!--            <span class="itentitle"  style="padding-left: 20px;">{{arrs[0].value }}%&nbsp;&nbsp;</span>-->
              <span class="itentitle"  style="padding-left: 20px;">{{85}}%&nbsp;&nbsp;</span>
            <span class="" style="text-align: center;">支付用户转化率</span>
<!--            <span class="itentitle"  style="padding-left: 20px;">{{arrs1[0].value }}%</span>-->
              <span class="itentitle"  style="padding-left: 20px;">{{79}}%</span>
          </div>
        </div>
        <chart></chart>
        <chart1></chart1>

      </div>
    </div>
  </div>
</template>

<script>
//import {defineComponent, onMounted, reactive} from 'vue'
import Chart from "./chart/index";
import Chart1 from "./chart/index1";
import axios from "axios";
// import axios from "axios";
// import {useRoute} from "vue-router";
// import {parkSum} from "@/api/api";
// import Draw from "@/views/bottomLeft/chart/draw";
export default ({
  mounted() {
    axios.get(this.$route.params.url+'dataView/user/conversionRate').then(res=>{
        this.arrs=res.data
        //console.log(this.config.data)
    });
    axios.get(this.$route.params.url+'dataView/pay/conversionRate').then(res=>{
      this.arrs1=res.data
      //console.log(this.config.data)
    });
  },
  methods: {},
  data() {
    return {
        arrs: [
      {
        name: "",
        value: "",
      },
    ],
      arrs1: [
        {
          name: "",
          value: "",
        },
      ],
  }},
  components: {
    Chart,
    Chart1,
  },

})
</script>

<style lang="scss" class>
$box-height: 520px;
$box-width: 100%;
.bottomRight {
  padding: 14px 16px;
  height: $box-height;
  width: $box-width;
  border-radius: 5px;
  .bg-color-black {
    height: $box-height - 30px;
    border-radius: 10px;
  }
  .text {
    color: #c3cbde;
  }
  .chart-box {
    margin-top: 16px;
    width: 170px;
    height: 170px;
    .active-ring-name {
      padding-top: 10px;
    }
  }
}
.itentitle{

  text-align: center;
  color: #40E0D0;
  font-size: 28px;
}
</style>
